package ua.kiev.tosik.price.database.dao;

import ua.kiev.tosik.price.models.Clients;
import ua.kiev.tosik.price.models.PricesFiles;

import java.util.Date;
import java.util.List;

public interface IPricesFilesDao {

	public PricesFiles findById(int id);
	public List<PricesFiles> findAll();
	public List<PricesFiles> findByClientsId(int clientId);
	public List<PricesFiles> findByClientsIdDate(int clientId, Date pricesDate);

	public PricesFiles save(PricesFiles pricesFiles) throws Exception;
	public PricesFiles update(PricesFiles pricesFiles) throws Exception;
	public void delete(PricesFiles pricesFiles) throws Exception;
	public void deleteAll(Clients clients) throws Exception;
	public void deleteAll() throws Exception;

	public byte[] loadFile(int fileId) throws Exception;
}
